<!-- 筛选 -->
{$exclude = explode(',', $exclude)}
{$action = get_action_name()}
<div class="list-table-filters">
    {if !in_array('progress', $exclude)}
    <p>
        <span class="label label-info">按流程</span>
        {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::DIRECTOR, user_config::ASSISTANT, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a href="{AnUrl("{$action}?{URLTracker::set('progress', '-1')}")}"{if URLTracker::val('progress') == -1} class="label label-primary"{else} class="label label-default"{/if}>全部</a>
        {/if}
        {if !isset($dealer_progress)}
        {$dealer_progress = order_config::$dealer_progress}
        {/if}
        {foreach $dealer_progress as $k => $v}
        <a href="{AnUrl("{$action}?{URLTracker::set('progress', $k)}")}"{if URLTracker::val('progress') == $k} class="label label-primary"{else} class="label label-default"{/if}>{$v}</a>
        {/foreach}
        {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::DIRECTOR, user_config::ASSISTANT, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a href="{AnUrl("{$action}?{URLTracker::set('progress', '24')}")}"{if URLTracker::val('progress') == "24"} class="label label-primary"{else} class="label label-default"{/if}>超24小时订单</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('progress', '48')}")}"{if URLTracker::val('progress') == "48"} class="label label-primary"{else} class="label label-default"{/if}>超48小时订单</a>
        {/if}
    </p>
    {/if}
    {if !in_array('task_user_id', $exclude)}
    <p>
        <span class="label label-info">按下单</span>
        <a href="{AnUrl("{$action}?{URLTracker::set('task_user_id', '-1')}")}"{if URLTracker::val('task_user_id') == -1} class="label label-primary"{else} class="label label-default"{/if}>全部</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('task_user_id', '1')}")}"{if URLTracker::val('task_user_id') == 1} class="label label-primary"{else} class="label label-default"{/if}>代理下单</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('task_user_id', '0')}")}"{if URLTracker::val('task_user_id') == 0} class="label label-primary"{else} class="label label-default"{/if}>合伙人下单</a>
    </p>
    {/if}
    {if !in_array('exchange_type', $exclude)}
    <p>
        <span class="label label-info">按商品</span>
        <a href="{AnUrl("{$action}?{URLTracker::set('exchange_type', '')}")}"{if URLTracker::val('exchange_type') == ''} class="label label-primary"{else} class="label label-default"{/if}>所有</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('exchange_type', 'all')}")}"{if  URLTracker::val('exchange_type') == 'all'} class="label label-primary"{else} class="label label-default"{/if}>含兑换</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('exchange_type', 'bbcoin')}")}"{if  URLTracker::val('exchange_type') == 'bbcoin'} class="label label-primary"{else} class="label label-default"{/if}>抱抱币兑换</a>
    </p>
    {/if}
    {if !in_array('status', $exclude)}
    <p>
        <span class="label label-info">按状态</span>
        <a href="{AnUrl("{$action}?{URLTracker::set('status', 1)}")}"{if URLTracker::val('status') == 1} class="label label-primary"{else} class="label label-default"{/if}>正常</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('status', 0)}")}"{if URLTracker::val('status') == 0} class="label label-primary"{else} class="label label-default"{/if}>已删除</a>
    </p>
    {/if}
    {if !in_array('old_version', $exclude)}
    <p>
        <span class="label label-info">旧版辅</span>
        <a href="{AnUrl("{$action}?{URLTracker::set('extra', -1)}")}"{if URLTracker::val('extra') == -1} class="label label-primary"{else} class="label label-default"{/if}>全部</a>
        <a href="{AnUrl("{$action}?{URLTracker::set('extra', 1)}")}"{if URLTracker::val('extra') == 1} class="label label-primary"{else} class="label label-default"{/if}>历史有付款凭证的但是流程可能不对的</a>
    </p>
    {/if}
</div>
<!-- /筛选 -->